home *** CD-ROM | disk | FTP | other *** search
- Path: uni-erlangen.de!winx03!sunshine!schoof
- From: schoof@informatik.uni-wuerzburg.de (Jochen Schoof)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Re: Problems execing passwd using pipes
- Followup-To: comp.unix.programmer
- Date: 20 Mar 1996 16:02:36 GMT
- Organization: University of Wuerzburg, Germany
- Message-ID: <4ipa6s$vr0@winx03.informatik.uni-wuerzburg.de>
- References: <4ip32h$srk@dfw-ixnews3.ix.netcom.com>
- NNTP-Posting-Host: wi2x01.informatik.uni-wuerzburg.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Jonas Shoor (jshoor@ix.netcom.com) wrote:
- : I am trying to write a program to execute the passwd command.
-
- I wonder why you told us twice in one posting ;-)
-
- : Passwd is interactive, so I set two pipes (one to read from the process
- : and one to write to the process), and I fork off a process to execute
- : the command.
-
- For security reasons all versions of passwd I know of do not read
- from stdin but directly from the terminal. So when wanting to feed
- passwd from another program, you'll have to deal with pseudo-ttys.
- Simple pipes alone won't help you any further.
-
- - Jochen
-
- PS: Followup-To limited to comp.unix.programmer as this has nothing to
- do with C.
-
- --
- --------------------------------------------------------------------------
- Jochen Schoof mailto:schoof@informatik.uni-wuerzburg.de
- Lehrstuhl fuer Informatik II +-------------------------------------------
- Universitaet Wuerzburg | You are just reading a .sig-light:
- D-97074 Wuerzburg (Germany) | It is free of fat, sugar and cholesterol!
- ------------------------------+-------------------------------------------
- WWW-Homepage: http://www.informatik.uni-wuerzburg.de/staff/joscho
- --------------------------------------------------------------------------
-